package com.td.module.farmer.controller.admin.employ.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 农业社会化服务 Excel VO
 *
 * @author 王翔翔
 */
@Data
public class EmployExcelVO {

    @ExcelProperty("主键id")
    private Long id;

    @ExcelProperty("服务名称")
    private String employName;

    @ExcelProperty(value = "服务类型", converter = DictConvert.class)
    @DictFormat("employ_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer employType;

    @ExcelProperty("服务主体")
    private String subject;

    @ExcelProperty("服务区域")
    private String region;

    @ExcelProperty("服务开始时间")
    private LocalDateTime employStartTime;

    @ExcelProperty("服务结束时间")
    private LocalDateTime employEndTime;

    @ExcelProperty("服务详情")
    private String details;

    @ExcelProperty("服务图片")
    private String picUrl;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
